package com.yuntsg.nnsfcp.test.test;

import cn.hutool.core.io.FileUtil;
import com.yuntsg.nnsfcp.common.utils.CheckUtil;

public class ParseEi {
    public static void main(String[] args) {
        String file1 = FileUtil.readUtf8String("F:\\qfworkspace\\idea\\novelty_jinan\\src\\main\\java\\com\\qf\\novelty\\test\\test\\Engineering_Village.txt");
        String[] line = file1.split("\n");
        String lineStr = line[0];
        if (!lineStr.startsWith("<RECORD")) {
            CheckUtil.check(false, "此文件不是EI导出的txt");
        }
        for (int i = 0; i < line.length; i++) {
            String lineStr2 = line[i];
            if (lineStr2.startsWith("<RECORD")) {
                System.out.println(line[i + 1]);
            }
        }

    }
}
